package com.nercel.dsj.gksales.service;

import com.nercel.dsj.gksales.util.UploadResp;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

public interface QiniuService {

	/**
	 * 文件上传七牛
	 * @param bucket
	 * @param key
	 * @param file
	 * @return
	 */
	UploadResp put(String bucket, String key, File file);
	
	/**
	 * 文件上传七牛默认空间
	 * @param key
	 * @param file
	 * @return
	 */
	UploadResp put(String key, File file);
	
	UploadResp upload(String key, MultipartFile multipartFile) throws IOException;
	
}

